package com.deelete.springcloud.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.deelete.springcloud.pojo.Order;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * 订单业务接口
 */
@Repository
public interface OrderMapper extends BaseMapper<Order> {
    //插入订单
    int addOrder(Order order);

    //更新订单状态
    int updateStatus(@Param("id") Long id);
}
